package com.aaa.service.impl;

import com.aaa.dao.AuthorMapper;
import com.wsc.entity.Author;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AuthorServiceImpl {
    @Resource
    AuthorMapper authorMapper;
    public Object select(){
        return authorMapper.selectList(null);
    }
    public Integer insert(Author author) {
        return authorMapper.insert(author);
    }
    public Integer delete(Integer id){
        return authorMapper.deleteById(id);
    }
    public Integer update(Author author){
        return  authorMapper.updateById(author);
    }

}
